/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-07-18
 * Time: 19:39
 */
public class Main_3 {
    public static void main(String[] args) {
        //数值转字符串
        int x1 = 100;
        double x2 = 3.14;
        String s1 = String.valueOf(x1);
        String s2 = String.valueOf(x2);
        System.out.println(s1 + 1);
        System.out.println(s2 + 1);

        System.out.println("==========");

        //字符串转数值
        int x3 = Integer.valueOf(s1);
        double x4 = Double.valueOf(s2);
        System.out.println(x3 + 1);
        System.out.println(x4 + 1);
    }
}
